package com.ljh.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘剑鸿
 * @since 2021-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Member对象", description="")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会员id")
    @TableId(value = "memberid", type = IdType.AUTO)
    private Integer memberid;

    @ApiModelProperty(value = "客户ID")
    private Integer clientid;

    @ApiModelProperty(value = "会员类型")
    private Integer memberGradeid;

    @ApiModelProperty(value = "卡号")
    private String membernumber;

    @ApiModelProperty(value = "会员生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "证件类型")
    @TableField("id_Type")
    private String idType;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "地址")
    private String adress;

    @ApiModelProperty(value = "积分")
    private Integer integral;

    @ApiModelProperty(value = "发卡日期")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date tomember;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;

    private String identity;

    private String clientname;
    private String membergrade;
    private String phoneNumber;
}
